package CreationMode.single.demo05;

/**
 * 单列模式 饿汉式 静态内部类 (线程安全 没有性能浪费)
 * */
public class Client {
    public static void main(String[] args) {
        Single single1 = Single.getInstance();
        Single single2 = Single.getInstance();
        System.out.println(single1 == single2);
    }
}
